<%@ page import = "java.util.*, org.rescue.search.Dataset, org.rescue.search.Document, org.rescue.search.DatasetListing" %>


<jsp:include page="header.jsp">
	<jsp:param name="activetoolbar" value="polish" />
</jsp:include>

    <form name="form1" method="post" action="Analyze.do" id="form1">

    <div id="toolbar">

		<input type="radio" name="analysis_type" value="summarize" checked> Summarize<br />
		<input type="radio" name="analysis_type" value="compare"> Compare<br />
		<input type="radio" name="analysis_type" value="discover"> Discover <br />
		<p />
		k: <input type="text" name="k" size="3" value="3">
		<p />
		taxonomyId: <input type="text" name="taxonomyId" size="3" value="4">	
		<p />
		<select name="datasets"  size="10" multiple ">


<%
	if(request.getAttribute("listing") != null) {
		ArrayList<DatasetListing> listing = (ArrayList<DatasetListing>)request.getAttribute("listing");
		
		for (DatasetListing dl : listing) {	
			out.print(" <option value='" + dl.getId() + "' >" + dl.getQuery() + "</option> \n");
		}	
	}
%>	
		</select>
<p />
<input type ="submit" value ="Run Analysis">

    </div>
    
	</form>
    
<jsp:include page="footer.jsp" />